package com.young.coderule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


import java.util.List;

/**
 * 编码规则组成实例类
 *
 */
@TableName("com_code_rule")
public class ComCodeRule {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 规则编码
     */
    @TableField("number")
    private String number;

    /**
     * 规则名称
     */
    @TableField("`name`")
    private String name;

    /**
     * 单据状态：1-暂存, 2-已提交, 3-已审核
     */
    @TableField("`status`")
    private Integer status;

    /**
     * 数据状态：1-禁用，2-可用
     */
    @TableField("`enable`")
    private Integer enable;

    /**
     * 应用规则
     */
    @TableField("app_mode")
    private String appMode;

    /**
     * 控制方式
     */
    @TableField("ctrl_mode")
    private String ctrlMode;

    /**
     * 业务对象编码
     */
    @TableField("biz_object_code")
    private String bizObjectCode;

    /**
     * 业务对象
     */
    @TableField("biz_object_name")
    private String bizObjectName;

    /**
     * 业务对象的编码字段标识
     */
    @TableField("code_Field")
    private String codeField;

    /**
     * 默认段间分隔符：1-空, 2--, 3-@, 4-#, 5-$, 6-%, 7-^, 8-&amp;, 9-*, 10-_, 11-.
     */
    @TableField("split_sign")
    private Integer splitSign;

    /**
     * 编码示例
     */
    @TableField("example")
    private String example;

    /**
     * 编码长度
     */
    @TableField("example_len")
    private String exampleLen;

    /**
     * 修改时重新编码  Y-是  N-否
     */
    @TableField("isupdater_cover")
    private String isupdaterCover;

    /**
     * 新增显示  Y-是  N-否
     */
    @TableField("isadd_view")
    private String isaddView;

    /**
     * 允许修改  Y-是  N-否
     */
    @TableField("ismodifiable")
    private String ismodifiable;

    /**
     * 编码唯一性  Y-是  N-否
     */
    @TableField("isunique")
    private String isunique;

    /**
     * 流水号  Y-是  N-否
     */
    @TableField("isserial_num")
    private String isserialNum;

    /**
     * 编码生成日志  Y-是  N-否
     */
    @TableField("islog")
    private String islog;

    /**
     * 受控组织  Y-是  N-否
     */
    @TableField("isapp_org")
    private String isappOrg;

    /**
     * 适用条件  Y-是  N-否
     */
    @TableField("iscondition")
    private String iscondition;

    /**
     * 校验码  Y-是  N-否
     */
    @TableField("ischeck_code")
    private String ischeckCode;

    /**
     * 断号补偿  Y-是  N-否
     */
    @TableField("isbreak")
    private String isbreak;

    /**
     * 高性能  Y-是  N-否
     */
    @TableField("isfast")
    private String isfast;

    /**
     * 编码规则信息分录
     */
    @TableField(exist = false)
    private List<ComCodeRuleT> comCodeRuleT;

    @TableField(exist = false)
    private ComCodeRuleNumber comCodeRuleNumber;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public String getAppMode() {
        return appMode;
    }

    public void setAppMode(String appMode) {
        this.appMode = appMode;
    }

    public String getCtrlMode() {
        return ctrlMode;
    }

    public void setCtrlMode(String ctrlMode) {
        this.ctrlMode = ctrlMode;
    }

    public String getBizObjectCode() {
        return bizObjectCode;
    }

    public void setBizObjectCode(String bizObjectCode) {
        this.bizObjectCode = bizObjectCode;
    }

    public String getBizObjectName() {
        return bizObjectName;
    }

    public void setBizObjectName(String bizObjectName) {
        this.bizObjectName = bizObjectName;
    }

    public String getCodeField() {
        return codeField;
    }

    public void setCodeField(String codeField) {
        this.codeField = codeField;
    }

    public Integer getSplitSign() {
        return splitSign;
    }

    public void setSplitSign(Integer splitSign) {
        this.splitSign = splitSign;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }

    public String getExampleLen() {
        return exampleLen;
    }

    public void setExampleLen(String exampleLen) {
        this.exampleLen = exampleLen;
    }

    public String getIsupdaterCover() {
        return isupdaterCover;
    }

    public void setIsupdaterCover(String isupdaterCover) {
        this.isupdaterCover = isupdaterCover;
    }

    public String getIsaddView() {
        return isaddView;
    }

    public void setIsaddView(String isaddView) {
        this.isaddView = isaddView;
    }

    public String getIsmodifiable() {
        return ismodifiable;
    }

    public void setIsmodifiable(String ismodifiable) {
        this.ismodifiable = ismodifiable;
    }

    public String getIsunique() {
        return isunique;
    }

    public void setIsunique(String isunique) {
        this.isunique = isunique;
    }

    public String getIsserialNum() {
        return isserialNum;
    }

    public void setIsserialNum(String isserialNum) {
        this.isserialNum = isserialNum;
    }

    public String getIslog() {
        return islog;
    }

    public void setIslog(String islog) {
        this.islog = islog;
    }

    public String getIsappOrg() {
        return isappOrg;
    }

    public void setIsappOrg(String isappOrg) {
        this.isappOrg = isappOrg;
    }

    public String getIscondition() {
        return iscondition;
    }

    public void setIscondition(String iscondition) {
        this.iscondition = iscondition;
    }

    public String getIscheckCode() {
        return ischeckCode;
    }

    public void setIscheckCode(String ischeckCode) {
        this.ischeckCode = ischeckCode;
    }

    public String getIsbreak() {
        return isbreak;
    }

    public void setIsbreak(String isbreak) {
        this.isbreak = isbreak;
    }

    public String getIsfast() {
        return isfast;
    }

    public void setIsfast(String isfast) {
        this.isfast = isfast;
    }

    public List<ComCodeRuleT> getComCodeRuleT() {
        return comCodeRuleT;
    }

    public void setComCodeRuleT(List<ComCodeRuleT> comCodeRuleT) {
        this.comCodeRuleT = comCodeRuleT;
    }

    public ComCodeRuleNumber getComCodeRuleNumber() {
        return comCodeRuleNumber;
    }

    public void setComCodeRuleNumber(ComCodeRuleNumber comCodeRuleNumber) {
        this.comCodeRuleNumber = comCodeRuleNumber;
    }
}